package com.tea.funct.mapper.statistic;

import com.tea.funct.domain.res.RewardQueryData;
import com.tea.funct.domain.res.RewardRecordData;
import com.tea.funct.domain.res.StatisticData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @PACKAGE_NAME: com.tea.funct.mapper.statistic
 * @CLASSNAME: StatisticDataMapper
 * @DEACRIPTION: 统计信息持久层
 * @AUTHOR: GuoChen
 * @DATE: 2024/6/1
 * @WEEK: 周六
 **/
@Mapper
public interface StatisticDataMapper {

    // 获取用户统计信息
    public StatisticData getStatisticDataByUserId(@Param("userId") Long userId);

    // 获取用户奖励数量信息
    public RewardQueryData getRewardDataByUserId(@Param("userId") Long userId);

    public List<RewardRecordData> getRewardRecordsByUserId(@Param("userId") Long userId, @Param("rewardType") String rewardType);
}
